<%@   page   language="java"   contentType="text/html;   charset=utf-8"%>
			<div class="container">
				<div class="row">
					<div class="col-xs-5">
						<div class="logo">
							<h1><a href="#"><img alt="" src="resources/images/logo.png" style="width:65%;padding:5px 0;"></a></h1>
						</div>
					</div>
					<div class="col-xs-7" id="login-info" >
						<c:choose>
							<c:when test="${not empty sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}">
								<div id="login-info-user" style="margin-top:2%;">
									
									<%-- <a href="user-detail/${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}" id="system-info-account" target="_blank">${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}</a> --%>
									<a  id="system-info-account" onclick="pages(${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.userid})" >${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}</a>
									<span>|</span>
									<a href="j_spring_security_logout"><i class="fa fa-sign-out"></i> 退出</a>
								</div>
							</c:when>
							<c:otherwise>
								<a class="btn btn-primary" href="user-register" style="display:none;">用户注册</a>
								<a class="btn btn-success" href="user-login-page">登录</a>
							</c:otherwise>
						</c:choose>
					</div>
				</div>
			</div>
			
			<div class="modal" id="user-info" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
								<div class="modal-dialog">
									<div class="modal-content">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
												&times;
											</button>
											<h6 class="modal-title" id="myModalLabel">个人资料</h6>
										</div>
										<div class="modal-body">
												<div class="form-line form-username-u" style="display: block;">
													<span class="form-label">用户名：</span>
													<input type="text" class="df-input-narrow" id="userName-top"  maxlength="20">
													<span class="form-message"></span>
													<br>
												</div>
												<div class="form-line form-truename-u" style="display: block;">
													<span class="form-label">真实姓名：</span>
													<input type="text" class="df-input-narrow" id="truename-top" maxlength="20">
													<span class="form-message"></span>
													<br>
												</div>
												<div class="form-line form-national-id-u" style="display: block;">
													<span class="form-label">身份证号：</span>
													<input type="text" class="df-input-narrow" id="national-id-top" maxlength="18">
													<span class="form-message"></span>
													<br>
												</div>
												<div class="form-line form-phone-u" style="display: block;">
													<span class="form-label">手机：</span>
													<input type="text" class="df-input-narrow" id="phone-top" maxlength="20">
													<span class="form-message"></span>
													<br>
												</div>
												<div class="form-line form-email-u" style="display: block;">
													<span class="form-label">邮箱：</span>
													<input type="text" class="df-input-narrow" id="email-top" maxlength="90">
													<span class="form-message"></span>
													<br>
												</div>
												<div class="form-line form-company-u" style="display: none;">
													<span class="form-label"><span class="warning-label"></span>单位：</span>
													<input type="text" class="df-input-narrow" id="company-top" maxlength="30">
													<span class="form-message"></span>
													<br>
												</div>
										</div>
										<div class="modal-footer">
											<button type="button" class="btn btn-default" data-dismiss="modal">
												关闭窗口
											</button>
										</div>
									</div>
								</div>
							</div>
							
							<script>
								function pages(userid){
									$.ajax({
										headers : {
											'Accept' : 'application/json',
											'Content-Type' : 'application/json'
										},
										type : "POST",
										url : "secure/dashboard/getUser-" + userid ,
										success: function(data){
		        	                    	$("#userName-top").val(data.userName);
		        	                    	$("#truename-top").val(data.trueName);
		        	                    	$("#national-id-top").val(data.nationalId);
		        	                    	$("#phone-top").val(data.phoneNum);
		        	                    	$("#email-top").val(data.email);
		        	                    	$("#company-top").val(data.company);
		        	                    },
										error : function(jqXHR, textStatus) {
											util.error("操作失败请稍后尝试");
										}
									});
									
									$(parent.document.getElementById("user-info")).modal({
										backdrop : true,
										keyboard : true
									});

									/* var selectGroupId = $(".user-group-nav .active", parent.document).data("id");
									var selectGroupName = $(".user-group-nav .active", parent.document).text().trim();

									$("#user-add-form #group-add", parent.document).val(selectGroupName);
									$("#user-add-form #group-add", parent.document).data("id", selectGroupId);
									$("#user-add-form #group-add-id", parent.document).val(selectGroupId); */
								}
							
							</script>